package httputils;

import java.util.HashMap;
import java.util.Map;
import java.util.ResourceBundle;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;

/**
 * Created by Administrator on 2016/7/12.
 */
public interface IRetrofitHttp {
    /**
     * 推荐
     *
     * @param
     * @return
     */
    @GET("/ver4/recommend/film?userId=e72118d5c26c7edacc5905b00c2c30a2&sessionKey=&type=1,2&channelID=31&clientID=31")
    Call<ResponseBody> getRecommend();

    /**
     * 热映影片
     * @param id  城市id
     * @param
     * @return
     */
    @GET("/ver4/city/{cityId}/film/onshow?index=0&count=10&type=1&channelID=31&clientID=31")
    Call<ResponseBody> getHot(@Path("cityId") String id);

    /**
     * 即将上映
     *
     * @param id  城市id
     * @param map
     * @return
     */
    @GET("/ver4/city/{cityId}/film/preshow?")
    Call<ResponseBody> getNotShow(@Path("cityId") String id, @QueryMap() Map<String, String> map);

    /**
     * 电影详情
     * @param id 电影id
     * @param map
     * @return
     */
    @GET("/ver4/film/(filmId)?")
    Call<ResponseBody> get(@Path("filmId") String id, @QueryMap() Map<String, String> map);
}
